babl: make malloc implementation stability sanity check non-fatal
authorØyvind Kolås <pippin@gimp.org>
Wed, 2 Jul 2014 04:20:13 +0000 (06:20 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 2 Jul 2014 04:20:13 +0000 (06:20 +0200)
babl/babl-memory.c

index 6ceca90e664526bfb5a4ad3bda65dcb794466025..ff171d7ff83df871092f8208c3412eb421c0973a 100644 (file)
@@ -91,7 +91,9 @@ functions_sanity (void)
         }
       else
         {
-          babl_fatal ("babl memory function(s) attempted switched on the fly");
+          fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between invocations in babl.\n",
+              first_malloc_used == malloc_f ? 
+              first_free_used == free_f ? "malloc and free" : "malloc" : "free");
         }
     }
 }